@extends('layouts.admin')
@section('content')
						<div id="content-header">
				<h1>用户管理</h1>
				<div class="btn-group">
					<a class="btn btn-large tip-bottom" title="Manage Files"><i class="icon-file"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Users"><i class="icon-user"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Comments"><i class="icon-comment"></i><span class="label label-important">5</span></a>
					<a class="btn btn-large tip-bottom" title="Manage Orders"><i class="icon-shopping-cart"></i></a>
				</div>
			</div>
			<div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>用户列表</a>
				<a href="#" class="current">用户详情</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">						
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th"></i>
								</span>
								<span class="label label-info"><a href="{{url('admin/role')}}" style="color:white">角色列表</a></span>
							</div>
							<div class="widget-content nopadding">
						            @if(count($errors)>0)
						          <div class="mark">
						            @if(is_object($errors))
						            @foreach($errors->all() as $error)
						                <p>{{$error}}</p>
						            @endforeach
						            @else
						                    <p>{{$errors}}</p> 
						             @endif
						                </div>
						            @endif
						        </div>
								<form action="{{url('admin/role')}}" method="post" class="form-horizontal" />
        							{{csrf_field()}}
									<div class="control-group" style="width:500px;margin:0 auto">
										<label class="control-label">角色标示</label>
										<div class="controls">
											<input type="text" name="name" value="" placeholder="用户名可以包含字母和数字，以及破折号和下划线。" />
										</div>
									</div>
									<div class="control-group" style="width:500px;margin:0 auto">
										<label class="control-label">角色名称</label>
										<div class="controls">
											<input type="text" name="display_name" value="" />
										</div>
									</div>
									<div class="control-group" style="width:500px;margin:0 auto">
										<label class="control-label">角色描述</label>
										<div class="controls">
											<input type="text" name="description" value=""/>
										</div>
									</div>
									<div class="control-group" style="width:500px;margin:0 auto">
										<label class="control-label">排序</label>
										<div class="controls">
											<input type="text" name="order" value="" style="width:70px"/>
										</div>
									</div>
									<div class="form-actions" style="width:80px;margin:0 auto">
										<button type="submit" class="btn btn-primary" style="width:90px">确认添加</button>
									</div>
								</form>							
							</div>
						</div>
						
					</div>
				</div>
				<div class="row-fluid">
					<div id="footer" class="span12">
						2012 &copy; Unicorn Admin. Brought to you by <a href="https://wrapbootstrap.com/user/diablo9983">diablo9983</a>
					</div>
				</div>
			</div>
@endsection